package Server;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.net.Socket;

/**
 * Concrete Collegue
 * Object storing information for one connected socket 
 * @author Yaxing Chen
 *
 */
class ClientSocket implements Colleague{
	private Socket client;
	private DataInputStream dis;
	private DataOutputStream dos;
	private int id;
	
	ClientSocket(Socket client, DataInputStream dis, DataOutputStream dos, int id){
		this.client = client;
		this.dis = dis;
		this.dos = dos;
		this.id = id;
	}
	
	public Socket getSocket(){
		return client;
	}
	
	public DataInputStream getInputStream(){
		return dis;
	}
	
	public DataOutputStream getOutputStream(){
		return dos;
	}
	
	public int getId(){
		return id;
	}
}